package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

//服务接口
public interface PermissionService {
    //新增检查项
    public void add(Permission permission);
    //检查项分页查询
    public PageResult pageQuery(QueryPageBean queryPageBean);
    //删除检查项
    public void deleteById(Integer id);
    //根据id查询权限
    public Permission findById(Integer id);
    //查询所有
    public List<Permission> findAll();
}
